package com.lostandfound.service.impl;

import com.lostandfound.mapper.PublishMapper;
import com.lostandfound.pojo.FindAny;
import com.lostandfound.pojo.Recruit;
import com.lostandfound.service.PublishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PublishServiceImpl implements PublishService {

    @Autowired
    private PublishMapper publishMapper;

    /**
     * 发布寻物
     * @param findAny
     */
    @Override
    public void add(FindAny findAny) {
        publishMapper.add(findAny);
    }

    /**
     * 发布失物
     * @param recruit
     */
    @Override
    public void addRecruit(Recruit recruit) {
        publishMapper.addRecruit(recruit);
    }
}
